package com.heima.utils.thread;

public class BehaviorThreadLocalUnit {
    private static final ThreadLocal<Integer> tl = new ThreadLocal();

    //储数据
    public static void set(Integer id){
        tl.set(id);
    }

    //取数据
    public static Integer get(){
        return tl.get();
    }

    //清理
    public static void clear(){
        tl.remove();;
    }

}
